<%--
  Created by IntelliJ IDEA.
  User: 我的电脑
  Date: 2020/11/13
  Time: 19:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改手机</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/adduser.css"/>
</head>
<body>
<div class="bg">
    <div class="logo lfet"></div>
    <div class="font lfet">
        修改手机>>>
    </div>
    <div class="wizard right">
        <form action="${pageContext.request.contextPath}/page/update.do">
            <div class="content">
                <div class="col">
                    <div class="form-group">
                        <input name="id" value="${id.id}" hidden="hidden">
                        <label class="lfet">手机名称:</label>
                        <input  type="text" class="form-control error inp-bg1 left" value="${id.name}" style="outline:none;"  name="name" />
                    </div>
                    <div class="form-group">
                        <label style="text-align: left;">是否有货:</label>
                        <c:if test="${id.state==1}">
                        <input type="radio" style="outline:none;" value="1" checked="checked" name="state"><span>有货</span>
                        <input type="radio" style="outline:none;" value="2" name="state"><span>无货</span>
                        </c:if>
                        <c:if test="${id.state==2}">
                            <input type="radio" style="outline:none;" value="1" name="state"><span>有货</span>
                            <input type="radio" style="outline:none;" value="2" checked="checked" name="state"><span>无货</span>
                        </c:if>
                    </div>
                    <div class="form-group">
                        <label class="lfet">价格:</label>
                        <input type="text" class="form-control error dh" style="outline:none;" name="price" value="${id.price}">
                    </div>
                    <div class="form-group">
                        <label class="lfet">品牌:</label>
                        <select   class="form-control error map" style="outline:none;height: 30px;width: 300px;" name="brandId">
                            <c:forEach items="${c}" var="s">
                                <option value="${s.id}">${s.name}</option>
                            </c:forEach>
                        </select>
                    </div>
                    <div class="bottom" style="text-align: center;">
                        <!-- 这个button也可以提交表单，不需要改成submit -->
                        <button style="text-align: center;">提 交</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
